package com.elder.business.mapper;

import java.util.List;
import com.elder.business.domain.MealRecords;
import org.apache.ibatis.annotations.Param;

/**
 * 膳食记录Mapper接口
 * 
 * @author elder
 * @date 2023-11-26
 */
public interface MealRecordsMapper 
{
    /**
     * 查询膳食记录
     * 
     * @param mealId 膳食记录主键
     * @return 膳食记录
     */
    public MealRecords selectMealRecordsByMealId(Long mealId);

    /**
     * 查询膳食记录列表
     * 
     * @param mealRecords 膳食记录
     * @return 膳食记录集合
     */
    public List<MealRecords> selectMealRecordsList(MealRecords mealRecords);

    /**
     * 新增膳食记录
     * 
     * @param mealRecords 膳食记录
     * @return 结果
     */
    public int insertMealRecords(MealRecords mealRecords);

    /**
     * 修改膳食记录
     * 
     * @param mealRecords 膳食记录
     * @return 结果
     */
    public int updateMealRecords(MealRecords mealRecords);

    /**
     * 删除膳食记录
     * 
     * @param mealId 膳食记录主键
     * @return 结果
     */
    public int deleteMealRecordsByMealId(Long mealId);

    /**
     * 批量删除膳食记录
     * 
     * @param mealIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMealRecordsByMealIds(Long[] mealIds);

    List<MealRecords> getMealRecordsList(@Param("elderIds") List<Long> elderIds,@Param("startTime") Long startTime,@Param("endTime") Long endTime);
}
